// Author: 		ngohaibac@hocdelam.org
// Date:		16th Nov, 2009
// Hardware:	TMS320F28335
// Module:		PWM Module

#ifndef DSP2833X_PWMLIB_H_
#define DSP2833X_PWMLIB_H_

#ifdef __cplusplus
extern "C" {
#endif

enum EPWM_Group {EPWM1, EPWM2, EPWM3, EPWM4, EPWM5, EPWM6 };

void PWM_Init(enum EPWM_Group PWM_Item, Uint16 period);
void PWM_StartSync(void);

// Set Duty Cycle
void PWM_SetDuty(enum EPWM_Group PWM_Item,Uint16 DutyA, Uint16 DutyB);

#ifdef __cplusplus
}
#endif /* extern "C" */

#endif /*DSP2833X_PWMLIB_H_*/
